package com.xl.generator.controller;

import com.xl.generator.common.ActionResult;
import com.xl.generator.common.ActionResultService;
import com.xl.generator.domain.UserRole;
import com.xl.generator.service.UserRoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 〈〉<br>
 *
 * @author lvln5
 * @Description
 * @date 2022/11/12 19:39
 */
@Api(value = "用户权限的增删改查")
@RestController
@RequestMapping("userRole")
public class UserRoleController {

	@Resource
	private UserRoleService userRoleService;

	@ApiOperation(value = "分页查询所有", notes="")
	@PostMapping ("list")
	public ActionResult test(){
		List<UserRole> list = userRoleService.list();
		return ActionResultService.callBackResultOK(list);
	}
}
